home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.1 / card_7291.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  72 lines

  1. -- card: 7291 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2612
  5. -- name: ShowMenu
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=82 top=302 right=324 bottom=182
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Install
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then pass mouseup
  23.   put installres(XCMD,ShowMenu) into it
  24.   if it is empty then play oops
  25.   else answer it
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part contents for background part 2
  31. ----- text -----
  32. ShowMenu
  33.  
  34. -- part contents for background part 13
  35. ----- text -----
  36. 11
  37.  
  38. -- part contents for background part 3
  39. ----- text -----
  40.  
  41. ShowMenu will redisplay any menus you've added to HyperCard using the NewMenu* XFCN.  HyperCard doesn't know you've added menus, and if you change userLevels or use the paint tools HyperCard will erase your menus accidentally.  It doesn't mean it, it just doesn't know any better.  An example of using ShowMenu would be:
  42.  
  43. on idle
  44.   global myMenu
  45.   ShowMenu myMenu 
  46.   pass idle
  47. end idle
  48.  
  49. Again, the menu number should be the same number that was returned by NewMenu*.
  50.  
  51. For a more efficent method of use, see the sample script provided with NewMenu*.
  52.  
  53. •••
  54.  
  55. All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
  56.  
  57. Nine to Five Software Company
  58. P.O. Box 915
  59. Greenwood, IN  46142
  60. (317) 887-2154
  61. & Michael Long
  62.  
  63. See also NewMenu*, EnableMenu*, DeleteMenu*,  ChangeMenu*, and CheckMenu*
  64.  
  65.  
  66. -- part contents for background part 10
  67. ----- text -----
  68. Syntax:
  69.  
  70. ShowMenu <menuNumber>
  71.  
  72. <menuNumber> is the MenuID returned by the original call to newMenu.